package cn.zmwh.bbs.modules.ums.controller;


import cn.zmwh.bbs.modules.ums.pojo.request.RegisterRequest;
import cn.zmwh.bbs.modules.ums.service.UserInfoService;
import cn.zmwh.common.core.api.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author dmzmwh
 * @since 2025-07-18
 */
@RestController
@RequestMapping("/ums/user")
public class UserController {

    @Autowired
    private UserInfoService userInfoService;


    @PostMapping("/register")
    public Result register(@RequestBody RegisterRequest request) {

        return userInfoService.register(request);
    }

}

